home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2 Applications 1996 May
/
SGI IRIX 6.2 Applications 1996 May.iso
/
dist
/
impr_dev.idb
/
usr
/
impressario
/
src
/
drivers
/
laserjetPJL
/
pclpjl.h.z
/
pclpjl.h
Wrap
Text File
|
1996-05-06
|
5KB
|
160 lines
/**************************************************************************
*
* Copyright (c) 1992 Silicon Graphics, Inc.
* All Rights Reserved
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
*
* The copyright notice above does not evidence any actual of intended
* publication of such source code, and is an unpublished work by Silicon
* Graphics, Inc. This material contains CONFIDENTIAL INFORMATION that is
* the property of Silicon Graphics, Inc. Any use, duplication or
* disclosure not specifically authorized by Silicon Graphics is strictly
* prohibited.
*
* RESTRICTED RIGHTS LEGEND:
*
* Use, duplication or disclosure by the Government is subject to
* restrictions as set forth in subdivision (c)(1)(ii) of the Rights in
* Technical Data and Computer Software clause at DFARS 52.227-7013,
* and/or in similar or successor clauses in the FAR, DOD or NASA FAR
* Supplement. Unpublished - rights reserved under the Copyright Laws of
* the United States. Contractor is SILICON GRAPHICS, INC., 2011 N.
* Shoreline Blvd., Mountain View, CA 94039-7311
**************************************************************************
*
* File: pclpjl.h
*
* Summary:
* PCL and PJL ibrary routines include file
*
* See Also:
* HP's PCL and PJL manuals.
*
**************************************************************************/
#ident "$Revision: 1.5 $"
/* Laser Jet Model information */
#define DEFAULT_RESOLUTION 300
/* Update MIN and MAX if you add a printer to this list.
* Also update the gui driver general_opts.c since it also has
* a list of supported devices used to control displayed options.
* Note the values correspond to the string position in the
* LJ_MODEL_NAMES array (so LJ_MODEL_4SI is element 2 in the
* array if you start counting from 0).
*/
#define LJ_NUM_MODELS 7
#define LJ_MODEL_4V 0
#define LJ_MODEL_4PLUS 1
#define LJ_MODEL_4SI 2
#define LJ_MODEL_5L 3
#define LJ_MODEL_5P 4
#define LJ_MODEL_5SI 5
#define LJ_MODEL_4P 6
#define LJ_MODEL_DEFAULT LJ_MODEL_4PLUS
static char *LJ_MODEL_NAMES[] = {
"HP LaserJet 4V",
"HP LaserJet 4 Plus",
"HP LaserJet 4Si",
"HP LaserJet 5L",
"HP LaserJet 5P",
"HP LaserJet 5Si",
"HP LaserJet 4P"
};
/* Options for setting up a duplexor */
#define LJ_DUPLEX_OFF 0
#define LJ_DUPLEX_SHORTSIDE 1
#define LJ_DUPLEX_LONGSIDE 2
#define LJ_DEFAULT_DUPLEX LJ_DUPLEX_OFF
#define LJ_NUM_DUPLEX_NAMES 3
static char *LJ_DUPLEX_NAMES[LJ_NUM_DUPLEX_NAMES] = {
"off",
"bindShortSide",
"bindLongSide"
};
/* Options for selecting tray */
#define LJ_TRAY_UPPER 0
#define LJ_TRAY_LOWER 1
#define LJ_TRAY_EITHER 2
#define LJ_TRAY_MANUAL 3
#define LJ_TRAY_NONE 4
#define LJ_DEFAULT_TRAY LJ_TRAY_NONE
#define LJ_NUM_TRAY_NAMES 4
static char *LJ_TRAY_NAMES[LJ_NUM_TRAY_NAMES] = {
"upper",
"lower",
"either",
"manual"
};
/* Options for print output bin */
#define LJ_OUTBIN_TOP 0
#define LJ_OUTBIN_REAR 1
#define LJ_NUM_OUTBIN_NAMES 2
#define LJ_DEFAULT_OUTBIN 0
static char *LJ_OUTBIN_NAMES[LJ_NUM_OUTBIN_NAMES] = {
"top",
"rear"
};
/* Options for print darkness */
#define LJ_DARKNESS_NORMAL 0
#define LJ_DARKNESS_LIGHT 1
#define LJ_DARKNESS_DARK 2
#define LJ_DARKNESS_ECONO 3
#define LJ_DEFAULT_DARKNESS LJ_DARKNESS_NORMAL
#define LJ_NUM_DARKNESS_NAMES 4
static char *LJ_DARKNESS_NAMES[LJ_NUM_DARKNESS_NAMES] = {
"Normal",
"Light",
"Dark",
"Economode"
};
/* Error codes */
#define LJ_EXIT_OK 0
#define LJ_BAD_LJ_MODEL_ERR 1
#define LJ_WRITE_STREAM_ERR 2
/* PCL and PJL utility functions */
int pclSetLineWrap(FILE *out);
int pclSetCrLf(FILE *out);
int pclFormFeed(FILE *out);
int pclResetPrinter(FILE *out);
int pclPrepForGraphics(FILE *out);
int pclPrepForNextPage(FILE *out);
int pclCleanupPrinter(FILE *out);
int pclSetRes(FILE *out, int xres, int yres);
int pclSendRow(FILE *out, unsigned char *row, unsigned long numBytes);
int pclSetTray(FILE *out, int tray);
int pjlSetModel(char *modelName);
int pjlGetModel(void);
int pjlEnterPJLMode(FILE *out);
int pjlResetPrinter(FILE *out);
int pjlEnterPCLMode(FILE *out);
int pjlSetCopies(FILE *out, int copies);
int pjlSetRes(FILE *out, int xres, int yres);
int pjlSetPaperSize(FILE *out, int size);
int pjlSetDuplex(FILE *out, int duplex);
int pjlSetTray(FILE *out, int tray);
int pjlSetOutBin(FILE *out, int tray);
int pjlSetDarkness(FILE *out, int darkness);
int pjlSetPageProtect(FILE *out, boolean onoff);
void pjlSetDebug(boolean onoff);
int pjlsetNoPJL(boolean PJL);